<?php

/**
 * Subclass for performing query and update operations on the 'tutor' table.
 *
 * 
 *
 * @package lib.model
 */ 
class TutorPeer extends BaseTutorPeer
{
  public static function getAllTutors()
  {
    $c = new Criteria;
    $c->addAscendingOrderByColumn(TutorPeer::ID);

    return (TutorPeer::doSelect($c));
  }
  
  public static function getTutorByFirstName($firstname)
  {
    $c = new Criteria;
    $c->add(TutorPeer::FIRSTNAME, $firstname);
    
    return TutorPeer::doSelect($c);
  }
}
